<div class="layui-fluid z-main">
    <div class="layui-upload">
        <button type="button" class="layui-btn" id="uploadBtn">上传头像</button>
        <div class="layui-upload-list">
            <img class="layui-upload-img" id="avatar" src="/storage/{$user->avatar}" onerror="this.src='__IMG__/avatar.png'">
            <p id="demoText"></p>
        </div>
    </div>
</div>